<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%sys_bzj_detail}}".
 *
 * @property integer $id
 * @property integer $uid
 * @property integer $type
 * @property double $account
 * @property string $detail
 * @property integer $create_time
 * @property string $operator
 * @property integer $orderid
 */
class BzjDetail extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%sys_bzj_detail}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid'], 'required'],
            [['uid', 'type', 'create_time', 'orderid'], 'integer'],
            [['account'], 'number'],
            [['detail'], 'string', 'max' => 120],
            [['operator'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'uid' => 'Uid',
            'type' => '1充值 2转至余额 3冻结',
            'account' => '额度',
            'detail' => '操作明细',
            'create_time' => 'Create Time',
            'operator' => '操作员',
            'orderid' => '某个操作流程的id,根据此id能查出整个日志流程',
        ];
    }
}
